package com.xinqi.modules.course.clazz.dto.req;

import com.xinqi.common.base.annotations.ApiQueryParam;
import com.xinqi.common.base.data.ListDataDTO;
import com.xinqi.common.base.response.Param;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 班级学生表-查询参数
 *
 * @author: system
 * @date: 2023/01/17
 */
@Data
@ApiQueryParam
public class ClassStudentAppQueryDTO extends Param implements Serializable {
    /**
     * ID
     */
    private Long id;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 班级id
     */
    @NotNull(message = "{course.content.classId.not.blank}")
    private Long classId;

    /**
     * 父分组id
     */
    private Long pid;

    /**
     * 分组id
     */
    private Long groupId;

    /**
     * 是否老师，0-否；1-是；
     */
    private Integer isTeacher;

    /**
     * 学生id
     */
    private Long studentId;

    /**
     * TEACHER("TEACHER", "老师"),ASSISTANT("ASSISTANT", "助教"),REPRESENTATIVE("REPRESENTATIVE", "课代表"),STUDENT("STUDENT", "学生");
     */
    private ListDataDTO<String> classRole = new ListDataDTO<>();

    /**
     * 搜索内容
     */
    private String searchKey;


}
